var User = function(obj) {
    if (typeof obj == "object") {
        for (key in obj) {
            this[key] = obj[key];
        };
    };
}
User.prototype = {
    constructor: User,
    hehe:function(arg){console.log(arg)}
}
